-- GENERATED SPELL FOR [Death Knight Champion] --


function spell0_29106(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29106', 612, 1)
end

function spell1_29106(pUnit, Event) --@Death Coil,n/a--
pUnit:FullCastSpellOnTarget(52375,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29106', 563, 1)
end

function spell2_29106(pUnit, Event) --@Death Grip,n/a--
pUnit:FullCastSpellOnTarget(49576,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29106', 0, 1)
end

function spell3_29106(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29106', 20000, 1)
end

function spell4_29106(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(52373,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29106', 12000, 1)
end

function Sorts_29106(pUnit, Event)
local choix_sorts_29106 = math.random(0, 4)
if choix_sorts_29106 == 0 then
pUnit:RegisterEvent('spell0_29106', 1, 1)
end
if choix_sorts_29106 == 1 then
pUnit:RegisterEvent('spell1_29106', 1, 1)
end
if choix_sorts_29106 == 2 then
pUnit:RegisterEvent('spell2_29106', 1, 1)
end
if choix_sorts_29106 == 3 then
pUnit:RegisterEvent('spell3_29106', 1, 1)
end
if choix_sorts_29106 == 4 then
pUnit:RegisterEvent('spell4_29106', 1, 1)
end
end

function mob29106_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29106', math.random(1500, 3000), 1)
end

function mob29106_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29106_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29106_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29106, 1, 'mob29106_Action')
RegisterUnitEvent(29106, 2, 'mob29106_Leave')
RegisterUnitEvent(29106, 3, 'mob29106_Kill')
RegisterUnitEvent(29106, 4, 'mob29106_Die')
